package net.dl.ss.domain;

/**
 * @author yakovlev.yuriy@gmail.com
 * @since 12.8.2008
 */
public class CategCouple {
	private Long id;
	private Long categoryId;
	private Long coupleId;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public Long getCoupleId() {
		return coupleId;
	}
	public void setCoupleId(Long coupleId) {
		this.coupleId = coupleId;
	}
	
	public String toXML() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("<categCouple>");
		buffer.append("<id>" + id + "</id>");
		buffer.append("<categoryId>" + categoryId + "</categoryId>");
		buffer.append("<coupleId>" + coupleId + "</coupleId>");
		buffer.append("</categCouple>");
		return buffer.toString();
	}

}
